// 引入art-template模块
const template = require('art-template');

const path = require('path');

let views = path.join(__dirname, 'views', 'index.art');

let html = template(views, {
    name: '维达',
    role: '擦汗'
});

console.log(html);